/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.oj.Mapper;

import java.util.List;
import java.util.Map;

/**
 *
 * @author wucy
 */
public interface LoginnMapper {

    //登录
    public List<Map<String, Object>> loginMapper(String username);

    //注册
    public String[] registerMapper(String username, String password, String state);
    //注册个人信息

    public String[] registerInformationMapper(String cellphone, String nickname, String realname, String sex, String school, String grade, String major, String schoolid, String path);
    //获取头像

    public List<Map<String, Object>> getPictureMapper(String username);

    //设置头像
    public int setPictureMapper(String username, String path, String old_path);

    //忘记密码
    public int forgetMapper(String username, String password);
    
    //初始化收藏夹
    public String[] initFavorite(String username);
    
}
